#include<iostream>
#include<cmath>
using namespace std;
int n;
double hh,mm,ww;
int main()
{
	cin>>n;
	while(n--)
	{
		cin>>hh>>mm;
		ww=(hh-100)*1.8;
		if(abs(ww-mm)<ww*0.1)
		puts("You are wan mei!");
		else if(mm-ww>ww*0.1)
		puts("You are tai pang le!");
		else 
		puts("You are tai shou le!");
	}
	return 0;
}
